package game;
import java.awt.*;
import javax.swing.*;

public class Panel extends JPanel
{
	private JButton play;
	private JButton instructions;
	private JLabel intro;
	
	public Panel(JButton play, JButton instructions, JLabel intro)
	{
		this.play= play;
		this.instructions= instructions;
		this.intro= intro;
		
		GroupLayout l= new GroupLayout(this);
		l.setAutoCreateGaps(true);
		l.setAutoCreateContainerGaps(true);
		l.setHorizontalGroup(l.createParallelGroup(GroupLayout.Alignment.CENTER)
				.addComponent(intro)
				.addGroup(l.createSequentialGroup()
						.addComponent(play)
						.addComponent(instructions)));
		l.setVerticalGroup(l.createSequentialGroup()
				.addComponent(intro)
				.addGroup(l.createParallelGroup(GroupLayout.Alignment.BASELINE)
						.addComponent(play)
						.addComponent(instructions)));
		
		setLayout(l);
	}

}
